#include<stdio.h>
#include <string.h>
int main()
{
    /*字符数组*/
    char buffer[] = "hello world";

    printf("buffer[0] = %c\n",buffer[3]);

    buffer[3] = 'B';
    printf("buffer[3] = %c\n",buffer[3]);
    printf("buffer:%s\n",buffer);

    /*字符串*/
    char * str = "dgeaeorjgoadgva";
    int length = sizeof(str);
    printf("length = %d\n",length);

    int len = strlen(str);
    printf("len = %d\n",len);
    printf("str[2]:%c\n",str[2]);

    str[2] = 'B';
    printf("str:%s\n",str);
#if 0
    printf("str:%s\n",str);
    printf("str:%p\n",str);
    printf("&str:%p\n",str);
    printf("hello")
#endif
    return 0;

}